// 会议模型类
// 包含会议产品包和产品的数据模型

class MeetingPackage {
  final String id; // 添加唯一标识符
  final String name; // 产品包名称
  final double price; // 产品包价格
  final String description; // 产品包描述
  final List<MeetingProduct> products; // 产品包中包含的产品列表
  final String tag; // 产品包标签(如"热门"、"推荐"等)
  final List<MeetingMedia> medias; // 产品包中包含的产品列表

  MeetingPackage({
    required this.id, // 添加id作为必要参数
    required this.name,
    required this.price,
    required this.description,
    required this.products,
    this.tag = '',
    this.medias = const [],
  });
}

class MeetingProduct {
  final String name; // 名称
  final double price; // 价值
  final List<String> content; // 内容
  final String saleCode; // 销售品编码
  final String saleName; // 销售品名称

  MeetingProduct({
    required this.name,
    required this.price,
    required this.content,
    required this.saleCode,
    required this.saleName,
  });
}

class MeetingMedia {
  final String name; // 名称
  final String description; // 描述
  final String imgUrl; // 图片URL
  final String videoUrl; // 视频URL

  MeetingMedia({
    required this.name,
    required this.description,
    this.imgUrl = '',
    this.videoUrl = '',
  });
}

/// 示例数据 - 会议产品包列表
List<MeetingPackage> getMeetingPackages() {
  return [
    MeetingPackage(
      id: 'mp001', // 添加唯一ID
      name: '会议标准款',
      price: 599,
      description: '分期标品',
      tag: '分期',
      products: [
        MeetingProduct(
          name: '会议网络',
          price: 299,
          saleName: '数智299元融合套餐202406',
          saleCode: '908014746',
          content: [
            'FTTR 1拖四',
            '1000M宽带 下行1000M 上行100M',
            '手机流量100G国内+300G区域',
            '手机通话3000分钟',
            '手机副卡2免2收',
            '天翼云会议（45分钟，20人）',
          ],
        ),
        MeetingProduct(
          name: '会议大屏',
          price: 10000,
          saleName: '数智299元融合套餐202406橙分期合约（36期）',
          saleCode: '908015994',
          content: [
            '华为智慧大屏S5 65寸',
            '云电脑账号',
            'AI应用',
            'DeepSeek',
          ],
        ),
        MeetingProduct(
          name: '会议PAD',
          price: 3000,
          saleName: ' AI云享看权益礼包400预存（政企版）*3台',
          saleCode: '908012700',
          content: [
            '天翼云PAD 3台',
            'AI大模型星辰慧记账号1个（体验）',
          ],
        ),
        MeetingProduct(
          name: '会议通话',
          price: 299,
          saleName: '酒店完美联盟语音网话包天',
          saleCode: '710001381',
          content: [
            '一部固话',
            '包天费用2.1',
          ],
        ),
      ],
      medias: [
        MeetingMedia(
          name: 'FTTR',
          description: '',
          videoUrl: '',
        ),
        MeetingMedia(
          name: '云PAD',
          description: '',
          videoUrl: '',
        ),
      ],
    ),
    MeetingPackage(
      id: 'mp002', // 添加唯一ID
      name: '会议标准款',
      price: 599,
      description: '统付标品',
      tag: '畅销',
      products: [
        MeetingProduct(
          name: '会议网络',
          price: 299,
          saleName: '299元商企全光套餐',
          saleCode: '908014603',
          content: [
            'FTTR-B 1主1从',
            '1000M宽带 上行100M 下行1000M',
            '天翼云会议（45分钟，20人）',
          ],
        ),
        MeetingProduct(
          name: '会议PAD',
          price: 3000,
          saleName: '中兴云pad 2台',
          saleCode: '908012699',
          content: [
            '中兴云PAD 2台',
            '云电脑账号',
            'AI应用',
            'DeepSeek',
          ],
        ),
        MeetingProduct(
          name: '会议大屏',
          price: 10000,
          saleName: '华为智慧大屏S5',
          saleCode: '908015994',
          content: [
            '华为智慧大屏S5 65寸',
          ],
        ),
        MeetingProduct(
          name: '会议通话',
          price: 299,
          saleName: '酒店完美联盟语音网话包天',
          saleCode: '710001381',
          content: ['一部固话', '包天费用1.4元'],
        ),
      ],
      medias: [
        MeetingMedia(
          name: 'FTTR',
          description: '',
          videoUrl: '',
        ),
        MeetingMedia(
          name: '云PAD',
          description: '',
          videoUrl: '',
        ),
      ],
    ),
    MeetingPackage(
      id: 'mp003', // 添加唯一ID
      name: '会议升级款',
      price: 1399,
      description: '统付标品',
      tag: '提升',
      products: [
        MeetingProduct(
          name: '会议网络',
          price: 499,
          saleName: '499元商企全光套餐',
          saleCode: '908015577',
          content: [
            'FTTR-B 1主2从',
            '1000M宽带 上行200M 下行1000M',
            '天翼云会议（45分钟，20人）',
          ],
        ),
        MeetingProduct(
          name: '会议PAD',
          price: 5000,
          saleName: '中兴云pad 5台',
          saleCode: '908012699',
          content: [
            '中兴云PAD 5台',
            '云电脑账号',
            'AI应用',
            'DeepSeek',
          ],
        ),
        MeetingProduct(
          name: '会议大屏',
          price: 10000,
          saleName: '华为智慧大屏S5Pro',
          saleCode: '908015994',
          content: [
            '华为智慧大屏S5Pro 75寸',
            'AI大模型星辰慧记账号1个（体验）',
          ],
        ),
        MeetingProduct(
          name: '会议存储',
          price: 199,
          saleName: '天翼云盘企业版199元/月',
          saleCode: '800009287',
          content: [
            '企业云盘1T',
          ],
        ),
        MeetingProduct(
          name: '会议通话',
          price: 299,
          saleName: '酒店完美联盟语音网话包天',
          saleCode: '710001381',
          content: ['一部固话', '包天资费1.87元'],
        ),
      ],
      medias: [
        MeetingMedia(
          name: 'FTTR',
          description: '',
          videoUrl: '',
        ),
        MeetingMedia(
          name: '云PAD',
          description: '',
          videoUrl: '',
        ),
      ],
    ),
  ];
}
